import request from '@/utils/request'

//  *********企业新增*********
/**   接口名称目录              功能
     
**/
//list
export  const  listProduct = (search)=>
	request({
		url:'/op/product/get_product_list',
		method:'get',
		params:{
			pageNo:search.pageNo,
			pageSize:search.pageSize,
			type:search.type,
			keyWord:search.keyWord
		}
	})
export  const  submitProduct = (url,form)=>
	request({
		url,
		method:'post',
		data:JSON.stringify(form)
	})
export  const  detailProduct = (code)=>
	request({
		url:'/op/product/get_product',
		method:'get',
		params:{
			code
		}
	})
export  const  delproduct = (code)=>
	request({
		url:'/op/product/delete_product',
		method:'get',
		params:{
			code
		}
	})
// 获取指定的产品	
export  const  DetailProduct = (code)=>
	request({
		url:'/op/product/get_product',
		method:'get',
		params:{
			code
		}
	})

// 获取帮助信息模板列表
export  const  list_QA = (search)=>
	request({
		url:'/op/faq_template/get_faq_template_list',
		method:'get',
		params:{
			pageNo:search.pageNo,
			pageSize:search.pageSize,
		}
	})
	
export  const  submitAddQA = (url,form)=>
	request({
		url,
		method:'post',
		data:JSON.stringify(form)
	})
	// 删除 帮助信息模板
export  const  delQA = (code)=>
	request({
		url:'/op/faq_template/delete_faq_template',
		method:'get',
		params:{
			code
		}
	})